/*
* Copyright (c) 2007 by Kirill Kolodyazhniy.
* See the file "license.terms" for information on usage and redistribution.
*/

#ifndef M_EXCEPTION_H
#define M_EXCEPTION_H

#include <stdexcept>
#include <sstream>

namespace Engine
{
	/**
	*    Use this function instead of C assert.
	*/
	template<class T>
	inline void Assert(T p)
	{
		if(!p)
			throw std::logic_error("Assertion failed.");
	}
}

#endif

